package com.you.concurrent.thread.chaindemo;

public class Main {

    public static void main(String[] args) {
        Request request = new Request("请求request!");
        //saveProcessor
        SaveProcessor saveProcessor = new SaveProcessor();
        saveProcessor.start();
        //printProcessor
        PrintProcessor printProcessor = new PrintProcessor(saveProcessor);
        printProcessor.start();
        //preProcessor
        PreProcessor preProcessor = new PreProcessor(printProcessor);
        preProcessor.start();
        //启动，处理请求
        preProcessor.process(request);
    }
}
